#ifndef TICTACTOE_H
#define TICTACTOE_H

#include <QDialog>
#include "button.h"


class TicTacToe : public QDialog
{
    Q_OBJECT;


public:
    TicTacToe(QWidget *parent = 0);

protected:
    void winner();
    void play();

private:
    Button *button[9];
    Button::DrawItem item;
    int counter;

private slots:
    void clickButton(Button *b);
    void changeStateButton();

};

#endif
